<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Company extends Model
{
    use SoftDeletes;

    protected $table = 'xyj_company_personage';
    protected $primaryKey = 'user_id';

    protected $fillable = [
        'name',
        'certificates_type',            //证件类型
        'id_card',                      //证件号
        'mobile',
        'qq',
        'email',
        'alipay',
        'ems',                           //邮寄地址

        //毕业院校信息
        'finish_province_id',
        'finish_city_id',
        'finish_school_id',
        'finish_dept_id',
        'finish_speciality_id',
        'school_year',

        'province_id',
        'city_id',
        'work_company',                //工作单位
        'duties',                       //职务

        'sign_pic',

    ];

    public function user()
    {
        return $this->belongsTo('\App\Models\User', 'user_id');
    }
}
